package com.gxc.mall.goods.dto;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author GongXincheng
 * @since 2019-09-07 18:08
 */
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class UserEntity implements Serializable {

    private Integer id;
    private String username;
    private String password;
    private Integer age;
    private String email;
    private Integer status;

    private String pzId;

    @JsonSerialize(using = LocalDateTimeSerializer.class)
    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
    private LocalDateTime lastLoginTime;

}
